#!/bin/bash
### BEGIN INIT INFO
# Provides:       ramdisk FS
# Required-Start: $local_fs $network
# Required-Stop:  $apache
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Description:    Creates the ramdisk filesystem /export/ram/htdocs
### END INIT INFO
/sbin/mkfs -t ext2 -m 0 /dev/ram0 41943040
/bin/mount -t ext2 /dev/ram0  /export/cache/ramdisk
/bin/chown balaio: /export/cache/ramdisk
/bin/cp -r /export/htdocs/player/ /export/cache/ramdisk/
